from rest_framework.pagination import PageNumberPagination

class StandardResultsSetPagination(PageNumberPagination):
    page_size = 2     #每页多少条
    page_size_query_param = 'page_size'  #前端参数
    max_page_size = 20    #最大页数